// 引入 request 文件
import request from '@/utils/request'

//对接公司字典
export const deptList = () => {
	return request({
		url: `/system/dept/list`,
		method: 'get'
	})
}

//团队成员字典
export const userList = (deptId?: string | number) => {
	return request({
		url: `/system/user/list?deptId=${deptId}`,
		method: 'get'
	})
}

//职务字典
export const contactTitleList = () => {
	return request({
		url: `/system/dict/data/type/contact_title`,
		method: 'get'
	})
}

//月份字典
export const search_month = () => {
	return request({
		url: `/system/dict/data/type/search_month`,
		method: 'get'
	})
}

//意向度字典（一般、很好、很差）
export const intentionLevelList = () => {
	return request({
		url: `/system/dict/data/type/intentionLevel`,
		method: 'get'
	})
}

//合作状态字典
export const visit_cooperation_List = () => {
	return request({
		url: `/system/dict/data/type/visit_cooperation_status`,
		method: 'get'
	})
}

//企业类型：投资商...
export const enterpriseList = () => {
	return request({
		url: `/system/dict/data/type/enterprise_type`,
		method: 'get'
	})
}

//企业来源
export const enterpriseSourceList = () => {
	return request({
		url: `/system/dict/data/type/enterprise_source`,
		method: 'get'
	})
}

//获取办公地
export const provinceCity = (code: string) => {
	return request({
		url: `/cloud/ProvinceCity/parent/${code}`,
		method: 'get'
	})
}